package com.imooc.ad.dao;

import com.imooc.ad.entity.AdUser;
import org.apache.catalina.User;
import org.springframework.data.jpa.repository.JpaRepository;

/**
 * @Description: TODO
 * @ClassName: AdUserRepository
 * @Author: zhangzhongyu
 * @Date: 2019-10-12 17:24
 * @Version: 1.0
 */
public interface AdUserRepository extends JpaRepository<AdUser, Long> {

    /**
     * 根据用户名查找用户记录
     * @param userName 用户名
     * @return AdUser
     */
    AdUser findByUsername(String userName);
}
